package com.youxuan.ssyx.product.mapper;

import com.youxuan.ssyx.model.product.SkuInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * sku信息 Mapper 接口
 * </p>
 *
 * @author LiuYang
 * @since 2023-10-11
 */
public interface SkuInfoMapper extends BaseMapper<SkuInfo> {

    void unlockStock(Long skuId, Integer skuNum);

    SkuInfo checkStock(Long skuId, Integer skuNum);

    Integer lockStock(Long skuId, Integer skuNum);

    void minusStock(Long skuId,Integer skuNum);
}
